

import java.sql.ResultSet;
import java.sql.Statement;



public class DescriptionModel extends ConnectionPool{
	private Statement st = null;
	public void insert(String s){
		try{
			if(st==null){
				st = getstatement();
			}
			st.executeUpdate("insert into editor (description) values ('"+ s +"')");
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public ResultSet get(){
		ResultSet rs = null;
		try{
			if(st==null){
				st = getstatement();
			}
			 rs = st.executeQuery("select * from editor");
		}catch(Exception e){
			e.printStackTrace();
		}
		return rs;
	}
}
